/**
 * 作者：陈文斌 on 2019/1/11.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:json_annotation/json_annotation.dart';
import 'package:crm/model/Company/company_category_type_model.dart';
import 'package:crm/model/Company/company_category_feature_model.dart';
import 'package:crm/model/Company/category_image_model.dart';

part 'company_category_model.g.dart';

@JsonSerializable()
class CompanyCategoryInfoModel extends Object with _$CompanyCategoryInfoModelSerializerMixin{
  String Id;
  String TypeId;
  CompanyCategoryTypeModel Type;
  String ParentId;
  List<CompanyCategoryInfoModel> Parent;
  String Name;
  String ActionLink;
  String Description;
  List<CompanyCategoryFeatureModel> Features;
  List<CompanyCategoryInfoModel> FromCategoryRels;
  List<CategoryImageModel> Images;
  List<CompanyCategoryInfoModel> SubCategories;
  int CompanyCount;

  CompanyCategoryInfoModel(
    this.Id,
    this.TypeId,
    this.Type,
    this.ParentId,
    this.Parent,
    this.Name,
    this.ActionLink,
    this.Description,
    this.Features,
    this.FromCategoryRels,
    this.Images,
    this.SubCategories,
    this.CompanyCount,
  );

  @override
  factory CompanyCategoryInfoModel.fromJson(Map<String, dynamic> json) => _$CompanyCategoryInfoModelFromJson(json);
}
